let students = [{name :"Ajay", std:8, score: 45},
                {name :"Vishnu", std:7, score: 80},
                {name :"Ram", std:6, score: 86},
                {name :"Anjali", std:7, score: 70},
                {name :"Abi", std:8, score: 60}];
                
//console.log(students);

let students1 = [];
students1 = students.filter(function checkscore(check)
{
    if (check.score>50)
    {
        check.status = "Pass";
    }
    else
    {
        check.status = "Fail";
    }
    return check.score >=50;
})
 console.log(students1);              